<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">


<h:head>
	<title>Central de Estagio Aluno</title>
	<link rel="StyleSheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/css/estilo.css" media="screen" />
        <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/css/tema/theme.css"/>
</h:head>
<body>
	<h:form>

		<p:row>
			<p:dataTable id="list" value="#{MBMovEmp.listarEmpAA}"
				var="emp" paginator="true" rows="8"
				emptyMessage="Nenhum registro encontrado."
				paginatorPosition="bottom">
				
				<f:facet name="header">  
            		Empregadores "Aguardando aprovação"  
        		</f:facet>  

				<p:column style="width: 1%;" headerText="Cod"
					filterBy="#{emp.codEmp}" filterMatchMode="startsWith">
					<h:outputText value="#{emp.codEmp}" />
				</p:column>
				<p:column style="width: 5%;" headerText="Nome"
					filterBy="#{emp.nomeEmp}" filterMatchMode="startsWith">
					<h:outputText value="#{emp.nomeEmp}" />
				</p:column>
				<p:column style="width: 5%;" headerText="CNPJ/CPF"
					filterBy="#{emp.CPNJCPFEmp}" filterMatchMode="startsWith">
					<h:outputText value="#{emp.CNPJCPFEmp}" />
				</p:column>
				<p:column style="width: 5%;" headerText="Situação"
					filterBy="#{emp.situacaoEmp}" filterMatchMode="startsWith">
					<h:outputText value="#{emp.situacaoEmp}" />
				</p:column>
				<p:column>
					<p:commandButton id="situacao" value="Ativar"
						icon="ui-icon-disk"
						actionListener="#{MBMovEmp.ativar(emp.codEmp)}" update="list" />
				</p:column>

			</p:dataTable>
		</p:row>
	</h:form>
</body>
</html>
